# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=py3-aniso8601
pkgver=9.0.1
pkgrel=3
pkgdesc="A library for parsing ISO 8601 strings"
url="https://bitbucket.org/nielsenb/aniso8601"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner py3-dateutil py3-mock"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/nielsenb/aniso8601/get/v$pkgver.tar.gz"
builddir="$srcdir/aniso8601-$pkgver"

prepare() {
	default_prepare
	mv nielsenb-aniso8601-* aniso8601-$pkgver
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
82b3c943fe3be845ee375e232c6aafb20d4ede560831f594e91ad75e93fd6d12316ad7285c6ebb796587ace27f56c4b0c17059d9c2d1aa9525394802ea19d00c  py3-aniso8601-9.0.1.tar.gz
"
